<?php

namespace common\models\credit_app_tables;

use Yii;

/**
 * This is the model class for table "{{%task_log}}".
 *
 * @property integer $tl_id
 * @property integer $tl_tid
 * @property string $tl_log
 * @property integer $tl_dateline
 */
class TaskLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%task_log}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_app');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['tl_tid', 'tl_log', 'tl_dateline'], 'required'],
            [['tl_tid', 'tl_dateline'], 'integer'],
            [['tl_log'], 'string'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'tl_id' => Yii::t('app', 'Tl ID'),
            'tl_tid' => Yii::t('app', '任务ID'),
            'tl_log' => Yii::t('app', '执行结果'),
            'tl_dateline' => Yii::t('app', 'Tl Dateline'),
        ];
    }
}
